home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1990-03-06 | 1.9 KB | [TEXT/MWII] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Tue Mar 6 23:02:36 1990, modified Tue Mar 6 23:02:36 1990, creator 'MWII', type ASCII, 1299 bytes "UGraph.h" , at 0x593 286 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [MWII] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 08 55 47 72 61 70 68 | 2e 68 00 00 00 00 00 00 |..UGraph|.h......|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 57 49 | 49 01 00 00 42 01 41 00 |.TEXTMWI|I...B.A.|
|00000050| 00 00 00 00 00 05 13 00 | 00 01 1e a2 1a 38 5c a2 |........|.....8\.|
|00000060| 1a 38 5c 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.8\.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 47 d2 00 00 |........|....G...|
|00000080| 2f 2f 20 55 47 72 61 70 | 68 2e 68 0d 2f 2f 20 43 |// UGrap|h.h.// C|
|00000090| 6f 70 79 72 69 67 68 74 | 20 a9 20 31 39 39 30 20 |opyright| . 1990 |
|000000a0| 41 70 70 6c 65 20 43 6f | 6d 70 75 74 65 72 2c 20 |Apple Co|mputer, |
|000000b0| 49 6e 63 2e 20 20 41 6c | 6c 20 72 69 67 68 74 73 |Inc. Al|l rights|
|000000c0| 20 72 65 73 65 72 76 65 | 64 2e 0d 0d 23 69 66 6e | reserve|d...#ifn|
|000000d0| 64 65 66 20 20 5f 5f 55 | 47 52 41 50 48 5f 5f 0d |def __U|GRAPH__.|
|000000e0| 23 64 65 66 69 6e 65 20 | 5f 5f 55 47 52 41 50 48 |#define |__UGRAPH|
|000000f0| 5f 5f 0d 0d 2f 2f 20 a5 | 20 41 75 74 6f 2d 49 6e |__..// .| Auto-In|
|00000100| 63 6c 75 64 65 20 74 68 | 65 20 72 65 71 75 69 72 |clude th|e requir|
|00000110| 65 6d 65 6e 74 73 20 66 | 6f 72 20 74 68 69 73 20 |ements f|or this |
|00000120| 75 6e 69 74 27 73 20 69 | 6e 74 65 72 66 61 63 65 |unit's i|nterface|
|00000130| 2e 0d 23 69 66 6e 64 65 | 66 20 20 5f 5f 55 4d 61 |..#ifnde|f __UMa|
|00000140| 63 41 70 70 5f 5f 0d 23 | 69 6e 63 6c 75 64 65 20 |cApp__.#|include |
|00000150| 22 55 4d 61 63 41 70 70 | 2e 68 22 0d 23 65 6e 64 |"UMacApp|.h".#end|
|00000160| 69 66 0d 0d 23 69 6e 63 | 6c 75 64 65 20 22 47 72 |if..#inc|lude "Gr|
|00000170| 61 70 68 2e 68 22 0d 0d | 2f 2a 20 74 68 65 20 69 |aph.h"..|/* the i|
|00000180| 6e 74 65 72 66 61 63 65 | 20 74 6f 20 74 68 69 73 |nterface| to this|
|00000190| 20 63 6c 61 73 73 20 67 | 6f 65 73 20 68 65 72 65 | class g|oes here|
|000001a0| 20 2a 2f 0d 0d 63 6c 61 | 73 73 20 54 47 72 61 70 | */..cla|ss TGrap|
|000001b0| 68 20 3a 20 70 75 62 6c | 69 63 20 54 56 69 65 77 |h : publ|ic TView|
|000001c0| 20 7b 0d 20 20 70 75 62 | 6c 69 63 3a 0d 09 76 69 | {. pub|lic:..vi|
|000001d0| 72 74 75 61 6c 20 70 61 | 73 63 61 6c 20 76 6f 69 |rtual pa|scal voi|
|000001e0| 64 20 49 52 65 73 28 54 | 44 6f 63 75 6d 65 6e 74 |d IRes(T|Document|
|000001f0| 20 2a 69 74 73 44 6f 63 | 75 6d 65 6e 74 2c 20 54 | *itsDoc|ument, T|
|00000200| 56 69 65 77 20 2a 69 74 | 73 53 75 70 65 72 56 69 |View *it|sSuperVi|
|00000210| 65 77 2c 20 50 74 72 20 | 2a 69 74 73 50 61 72 61 |ew, Ptr |*itsPara|
|00000220| 6d 73 29 3b 0d 09 2f 2f | 20 49 6e 69 74 69 61 6c |ms);..//| Initial|
|00000230| 69 7a 65 20 74 68 65 20 | 67 72 61 70 68 20 76 69 |ize the |graph vi|
|00000240| 65 77 20 66 72 6f 6d 20 | 69 74 73 20 72 65 73 6f |ew from |its reso|
|00000250| 75 72 63 65 20 74 65 6d | 70 6c 61 74 65 2e 0d 0d |urce tem|plate...|
|00000260| 09 76 69 72 74 75 61 6c | 20 70 61 73 63 61 6c 20 |.virtual| pascal |
|00000270| 76 6f 69 64 20 53 65 74 | 47 72 61 70 68 52 65 63 |void Set|GraphRec|
|00000280| 74 28 52 65 63 74 20 67 | 72 61 70 68 52 65 63 74 |t(Rect g|raphRect|
|00000290| 29 3b 0d 09 2f 2f 20 49 | 6e 69 74 69 61 6c 69 7a |);..// I|nitializ|
|000002a0| 65 73 20 74 68 65 20 67 | 72 61 70 68 20 64 61 74 |es the g|raph dat|
|000002b0| 61 20 73 74 72 75 63 74 | 75 72 65 20 74 6f 20 62 |a struct|ure to b|
|000002c0| 65 20 74 68 65 20 73 69 | 7a 65 20 6f 66 20 74 68 |e the si|ze of th|
|000002d0| 69 73 20 76 69 65 77 0d | 0d 09 76 69 72 74 75 61 |is view.|..virtua|
|000002e0| 6c 20 70 61 73 63 61 6c | 20 76 6f 69 64 20 53 65 |l pascal| void Se|
|000002f0| 74 50 6f 69 6e 74 28 20 | 73 68 6f 72 74 20 77 68 |tPoint( |short wh|
|00000300| 69 63 68 2c 20 6c 6f 6e | 67 20 76 61 6c 75 65 20 |ich, lon|g value |
|00000310| 29 3b 0d 09 2f 2f 20 73 | 65 74 20 61 20 70 6f 69 |);..// s|et a poi|
|00000320| 6e 74 20 74 6f 20 61 20 | 76 61 6c 75 65 0d 0d 09 |nt to a |value...|
|00000330| 76 69 72 74 75 61 6c 20 | 70 61 73 63 61 6c 20 73 |virtual |pascal s|
|00000340| 68 6f 72 74 20 47 65 74 | 4e 75 6d 50 6f 69 6e 74 |hort Get|NumPoint|
|00000350| 73 28 29 3b 0d 09 2f 2f | 20 72 65 74 75 72 6e 20 |s();..//| return |
|00000360| 74 68 65 20 6e 75 6d 62 | 65 72 20 6f 66 20 70 6f |the numb|er of po|
|00000370| 69 6e 74 73 20 69 6e 20 | 74 68 65 20 67 72 61 70 |ints in |the grap|
|00000380| 68 0d 0d 09 76 69 72 74 | 75 61 6c 20 70 61 73 63 |h...virt|ual pasc|
|00000390| 61 6c 20 76 6f 69 64 20 | 43 6f 6d 70 75 74 65 42 |al void |ComputeB|
|000003a0| 61 72 73 28 42 6f 6f 6c | 65 61 6e 20 72 65 64 72 |ars(Bool|ean redr|
|000003b0| 61 77 29 3b 0d 09 2f 2f | 20 74 68 65 20 67 72 61 |aw);..//| the gra|
|000003c0| 70 68 20 6c 69 62 72 61 | 72 79 20 63 6f 6d 70 75 |ph libra|ry compu|
|000003d0| 74 65 73 20 65 61 63 68 | 20 6f 66 20 74 68 65 20 |tes each| of the |
|000003e0| 62 61 72 73 20 66 6f 72 | 20 74 68 69 73 20 67 72 |bars for| this gr|
|000003f0| 61 70 68 0d 09 2f 2f 20 | 61 6e 64 20 69 66 20 72 |aph..// |and if r|
|00000400| 65 64 72 61 77 20 69 73 | 20 54 52 55 45 20 66 6f |edraw is| TRUE fo|
|00000410| 72 63 65 73 20 74 68 65 | 20 76 69 65 77 20 74 6f |rces the| view to|
|00000420| 20 72 65 64 72 61 77 20 | 69 74 73 65 6c 66 0d 0d | redraw |itself..|
|00000430| 09 76 69 72 74 75 61 6c | 20 70 61 73 63 61 6c 20 |.virtual| pascal |
|00000440| 76 6f 69 64 20 47 65 74 | 43 6f 6f 72 64 69 6e 61 |void Get|Coordina|
|00000450| 74 65 52 61 6e 67 65 28 | 52 65 63 74 20 2a 63 6f |teRange(|Rect *co|
|00000460| 6f 72 64 52 61 6e 67 65 | 29 3b 0d 09 2f 2f 20 72 |ordRange|);..// r|
|00000470| 65 74 75 72 6e 20 6d 69 | 6e 20 26 20 6d 61 78 20 |eturn mi|n & max |
|00000480| 59 20 63 6f 6f 72 64 69 | 6e 61 74 65 73 2c 20 61 |Y coordi|nates, a|
|00000490| 6e 64 20 6d 69 6e 20 26 | 20 6d 61 78 20 58 20 63 |nd min &| max X c|
|000004a0| 6f 6f 72 64 69 6e 61 74 | 65 73 2c 0d 09 2f 2f 20 |oordinat|es,..// |
|000004b0| 75 73 65 66 75 6c 20 66 | 6f 72 20 6c 61 62 65 6c |useful f|or label|
|000004c0| 69 6e 67 20 74 68 65 20 | 61 78 65 73 20 6f 66 20 |ing the |axes of |
|000004d0| 74 68 65 20 67 72 61 70 | 68 0d 0d 09 76 69 72 74 |the grap|h...virt|
|000004e0| 75 61 6c 20 70 61 73 63 | 61 6c 20 76 6f 69 64 20 |ual pasc|al void |
|000004f0| 44 72 61 77 28 52 65 63 | 74 20 2a 61 72 65 61 29 |Draw(Rec|t *area)|
|00000500| 3b 0d 09 2f 2f 20 64 72 | 61 77 73 20 74 68 65 20 |;..// dr|aws the |
|00000510| 67 72 61 70 68 0d 09 0d | 09 76 69 72 74 75 61 6c |graph...|.virtual|
|00000520| 20 70 61 73 63 61 6c 20 | 76 6f 69 64 20 46 72 65 | pascal |void Fre|
|00000530| 65 28 76 6f 69 64 29 3b | 0d 09 2f 2f 20 66 72 65 |e(void);|..// fre|
|00000540| 65 73 20 74 68 65 20 64 | 61 74 61 20 61 6c 6c 6f |es the d|ata allo|
|00000550| 63 61 74 65 64 20 62 79 | 20 74 68 69 73 20 63 6c |cated by| this cl|
|00000560| 61 73 73 0d 0d 20 20 70 | 72 69 76 61 74 65 3a 0d |ass.. p|rivate:.|
|00000570| 20 20 09 47 72 61 70 68 | 53 74 72 75 63 74 50 74 | .Graph|StructPt|
|00000580| 72 09 66 44 61 74 61 3b | 0d 7d 3b 0d 0d 23 65 6e |r.fData;|.};..#en|
|00000590| 64 69 66 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |dif.....|........|
|000005a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000600| 00 00 01 00 00 00 01 00 | 00 00 00 00 00 00 00 1e |........|........|
|00000610| 54 68 69 73 20 72 65 73 | 6f 75 72 63 65 20 66 6f |This res|ource fo|
|00000620| 72 6b 20 69 6e 74 65 6e | 74 69 6f 6e 61 6c 6c 79 |rk inten|tionally|
|00000630| 20 6c 65 66 74 20 62 6c | 61 6e 6b 20 20 20 00 00 | left bl|ank ..|
|00000640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000680| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000690| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000700| 00 00 01 00 00 00 01 00 | 00 00 00 00 00 00 00 1e |........|........|
|00000710| 00 00 00 00 00 00 00 00 | 00 1c 00 1e ff ff 00 00 |........|........|
|00000720| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+